﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LeadMaster.Helpers
{
  public static class AdditionalDays
  {
    
    public static List<DateTime> BankHolidays = new List<DateTime>();

    private static void FillDaysToAdd (ref Dictionary<DayOfWeek, int> daysToAdd)
	  {
      daysToAdd.Add(DayOfWeek.Friday, 2);
      daysToAdd.Add(DayOfWeek.Thursday, 2);
      daysToAdd.Add(DayOfWeek.Monday, 0);
      daysToAdd.Add(DayOfWeek.Tuesday, 0);
      daysToAdd.Add(DayOfWeek.Wednesday, 1);
      daysToAdd.Add(DayOfWeek.Saturday, 2);
      daysToAdd.Add(DayOfWeek.Sunday, 1);
	  }

    public static int AddLeadDays(DayOfWeek LeadDay)
    {
      Dictionary<DayOfWeek, int> DaysToAdd = new Dictionary<DayOfWeek, int>();
      FillDaysToAdd(ref DaysToAdd);
      int NumOfDays = DaysToAdd[LeadDay];
      return NumOfDays;
    }
  }
}